package Ctr;

import DB.DBEksemplar;
import DB.DBFormat;
import Model.*;

public class CtrFormat
{ 
	private DB.DBFormat dbFor;
	private DBEksemplar dbEks;
	
	public CtrFormat()
	{
		dbFor = DBFormat.getInstance();
		dbEks = DBEksemplar.getInstance();
	}
	
	public Format findFormat(int id)
	{
		Format f = dbFor.findFormat(id, true);
		return f;
	}
	
	public void opretEksemplar(Eksemplar e)
	{
		dbEks.createEksemplar(e);
	}
}